package aop_aspect;

public class MessageBeanImpl implements MessageBean {
	private String name;

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void sayHelloAround() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
		}

		System.out.println("Hello, " + name + "!");
	}

	@Override
	public void sayHelloBefore() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
		}

		System.out.println("Hello, " + name + "!");
	}

	@Override
	public void sayHelloAfter() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
		}

		System.out.println("Hello, " + name + "!");
		
	}

}
